<template>
	<view class="">
		<view class="order" @click="todetail">
			<view class="order_pic">
				<image :src="orderinfo.cover" mode=""></image>
				<view v-if="orderinfo.type" class="type">
					<image v-if="orderinfo.type == 1" src="https://ykp-new.oss-cn-hangzhou.aliyuncs.com/client/discover/run_recomm.png" mode="widthFix"></image>
					<image v-else-if="orderinfo.type == 2" src="https://ykp-new.oss-cn-hangzhou.aliyuncs.com/client/discover/run_active.png" mode="widthFix"></image>
					<image v-else src="https://ykp-new.oss-cn-hangzhou.aliyuncs.com/client/discover/run_renwu.png" mode="widthFix"></image>
				</view>
			</view>
			<view class="order_info">
				<view class="title shenglueh">{{ orderinfo.name }}</view>
				<view class="date">
					<view class="date_time">时间:{{ orderinfo.start_time_a }}</view>
				</view>
				<view class="area">地点:{{ orderinfo.city }}</view>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	props: ['orderinfo'],
	data() {
		return {};
	},
	methods: {
		todetail() {
			this.$emit('toorderdetail');
			this.$emit('lookactive',this.orderinfo.id)
		}
	},
	onShow() {},
	mounted() {}
};
</script>

<style lang="less" scoped>
.order {
	width: 100%;
	padding: 0 30upx;
	box-sizing: border-box;
	height: 180upx;
	display: flex;
	background-color: #F2F2F2;
	align-items: center;
	.order_pic {
		width: 250upx;
		height: 140upx;
		position: relative;
		image {
			width: 100%;
			height: 100%;
			border-radius: 10upx;
		}
		.type {
			position: absolute;
			top: 0;
			left: 20upx;
			image {
				width: 50upx;
				height: 50upx;
				border-radius: 0;
			}
		}
	}
	.order_info {
		height: 140upx;
		margin-left: 20upx;
		width: 420upx;
		.date_time,
		.area {
			font-size: 24upx;
			color: #999999;
			line-height: 24upx;
			margin-top: 10upx;
		}
		.title {
			font-size: 28upx;
			color: #333333;
			font-weight: bold;
			margin-bottom: 40upx;
		}
	}
}
</style>
